package com.young4j.springdemo.config.event;

import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author yf
 * @Date 2018/12/26 17:50
 **/
@Component
public class BlackListenerAsync {
    @EventListener
    @Async
    public void processBlackListener(BlackEvent event){
        System.out.println("BlackListenerAsync:" + event.getAddress());
    }
}
